import imgError from "./imgError/index";
import imgError2 from "./imgError/index2";
import modal from "./modal";
const install = function (Vue) {
  Vue.directive("imgError", imgError);
  Vue.directive("imgError2", imgError2); // 研究成果的海报加载失败提示
};

if (window.Vue) {
  Vue.use(install); // eslint-disable-line
  // 模态框对象
  Vue.prototype.$modal = modal;
}

export default install;
